package arrays;

public class TestPrivate {

	private TestPrivate(){}
	
	public TestAbstr getInstanceAbs() {
		return  new TestAbstr() {
				public void create() {
					System.out.println("метод create()");
				}
		};
	}
	
	public static void main(String[] args) {
		TestPrivate t = new TestPrivate();
		TestAbstr a = t.getInstanceAbs();
		System.out.println(a.getClass().getSimpleName());

	}

}
